// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VueAnimateNumber from 'vue-animate-number'
import * as echarts from 'echarts';
import axios from 'axios';
import 'echarts-liquidfill'
import './assets/font/font.css'
import router from './router'
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.use(VueAnimateNumber);
Vue.prototype.$echarts = require('echarts');
Vue.prototype.$axios = axios;  
Vue.prototype.$bus = new Vue();

// https
let hostPath = "https://" + window.location.host + window.location.pathname;

// http
// let hostPath = "http://" + window.location.host + window.location.pathname;
let path = hostPath + "static/config/sysConfig.json";
Vue.prototype.$axios.get(path, {}).then(
  resolve => {
    Vue.prototype.$sysConfig = resolve.data; 
    new Vue({
      el: '#app',
      router,
      components: {App},
      template: '<App/>'
    })
}); 